package com.ruoyi.supervise.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.supervise.mapper.ClParticipateunitpersonMapper;
import com.ruoyi.supervise.domain.ClParticipateunitperson;
import com.ruoyi.supervise.service.IClParticipateunitpersonService;
import com.ruoyi.common.core.text.Convert;

/**
 * 施工许可-参与单位人员情况Service业务层处理
 * 
 * @author ruoyi
 * @date 2019-10-14
 */
@Service
public class ClParticipateunitpersonServiceImpl implements IClParticipateunitpersonService 
{
    @Autowired
    private ClParticipateunitpersonMapper clParticipateunitpersonMapper;

    /**
     * 查询施工许可-参与单位人员情况
     * 
     * @param guid 施工许可-参与单位人员情况ID
     * @return 施工许可-参与单位人员情况
     */
    @Override
    public ClParticipateunitperson selectClParticipateunitpersonById(String guid)
    {
        return clParticipateunitpersonMapper.selectClParticipateunitpersonById(guid);
    }

    /**
     * 查询施工许可-参与单位人员情况列表
     * 
     * @param clParticipateunitperson 施工许可-参与单位人员情况
     * @return 施工许可-参与单位人员情况
     */
    @Override
    public List<ClParticipateunitperson> selectClParticipateunitpersonList(ClParticipateunitperson clParticipateunitperson)
    {
        return clParticipateunitpersonMapper.selectClParticipateunitpersonList(clParticipateunitperson);
    }

    /**
     * 新增施工许可-参与单位人员情况
     * 
     * @param clParticipateunitperson 施工许可-参与单位人员情况
     * @return 结果
     */
    @Override
    public int insertClParticipateunitperson(ClParticipateunitperson clParticipateunitperson)
    {
        return clParticipateunitpersonMapper.insertClParticipateunitperson(clParticipateunitperson);
    }

    /**
     * 修改施工许可-参与单位人员情况
     * 
     * @param clParticipateunitperson 施工许可-参与单位人员情况
     * @return 结果
     */
    @Override
    public int updateClParticipateunitperson(ClParticipateunitperson clParticipateunitperson)
    {
        return clParticipateunitpersonMapper.updateClParticipateunitperson(clParticipateunitperson);
    }

    /**
     * 删除施工许可-参与单位人员情况对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteClParticipateunitpersonByIds(String ids)
    {
        return clParticipateunitpersonMapper.deleteClParticipateunitpersonByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除施工许可-参与单位人员情况信息
     * 
     * @param guid 施工许可-参与单位人员情况ID
     * @return 结果
     */
    public int deleteClParticipateunitpersonById(String guid)
    {
        return clParticipateunitpersonMapper.deleteClParticipateunitpersonById(guid);
    }
}
